# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=dsfmt
_pkgname=dSFMT
pkgver=2.2.5
pkgrel=1
pkgdesc="Double precision SIMD-oriented Fast Mersenne Twister"
url="https://github.com/MersenneTwister-Lab/dSFMT"
arch="all"
license="BSD-3-Clause"
subpackages="$pkgname-dev"
source="https://github.com/MersenneTwister-Lab/dSFMT/archive/v$pkgver/$_pkgname-$pkgver.tar.gz
	dSFMT.pc.in
	Makefile
	"
builddir="$srcdir/$_pkgname-$pkgver"

prepare() {
	default_prepare

	cp "$srcdir"/dSFMT.pc.in .
	cp "$srcdir"/Makefile .
	echo "$pkgver" > VERSION
}

build() {
	make
}

check() {
	make check
}

package() {
	make install DESTDIR="$pkgdir"
}

sha512sums="
951e8669350f750b8915a819e704eae0a9b9c9518b3e3b9a1905f9ca0d25cc4c2486cb479e258a4a114e9c26ceb73a6c4e9f1cc02ed19173aeb8f20189754f6b  dSFMT-2.2.5.tar.gz
5a8393a2366be81c16308cafdd1a171e92be10bd971eb824fbd93cfd25770b97da54a566876dfdaaceab4c59a222199504dbbdffc8369f70791ac1c6f8156c4b  dSFMT.pc.in
170f243d105e7dc9d8de427cfe5f9ff8017d3068ca3082be3a55b64a28f6417b7977a1fd95351fd7e3ad49c2828a06f3b8c432459b120451f6ac1d90ea5f11d6  Makefile
"
